IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[dbo].[spDriver_InsertComment]') AND OBJECTPROPERTY(id,N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spDriver_InsertComment]
GO

GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Eric Liew
-- Create date: 6/2/2009
-- Description:	Insert Driver
-- =============================================
CREATE PROCEDURE [dbo].[spDriver_InsertComment]
(
		@DriverId INT,
		@Comment NVARCHAR(500),
		@CommentDate DATETIME	
)

AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

	INSERT DriverComment
	(DriverId, Comment, CommentDate)
	VALUES
	(@DriverId, @Comment, @CommentDate) 	

END
GO
